package com.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ fileName:OutStorageHsy
 * @ description:
 * @ author:dzh
 * @ createTime:2022/5/7 21:14
 * @ version:1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OutStorageHsy {
    private Integer oshId;
    private Double oshAmount;
    private Integer oshQtySum;
    private String oshMan;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date oshDate;
    private String auditor;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date auditDate;
    private Integer oshType;
    private Integer auditStatus;

    private Integer addStock;

    public OutStorageHsy(Double oshAmount, Integer oshQtySum, String oshMan) {
        this.oshAmount = oshAmount;
        this.oshQtySum = oshQtySum;
        this.oshMan = oshMan;
    }
}
